package org.jeecg.modules.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 商户基本信息表
 * @Author: yfkj
 * @Date:   2023-02-07
 * @Version: V1.0
 */
@ApiModel(value="caishui_business对象", description="商户基本信息表")
@Data
@TableName("caishui_business")
public class CaishuiBusiness implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

	/**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private Long tenantId;

	/**用户ID*/
    @ApiModelProperty(value = "用户ID")
    private String userId;

	/**渠道商户ID*/
    @ApiModelProperty(value = "渠道商户ID")
    private String channelBusinessId;

	/**父ID*/
    @ApiModelProperty(value = "父ID")
    private String pid;

	/**商户类型：1-普通商户，2-API商户，3-渠道商户*/
	@Excel(name = "商户类型", width = 15 ,dicCode = "caishui_business_type")
    @ApiModelProperty(value = "商户类型")
    @Dict(dicCode = "caishui_business_type")
    private Integer type;

	/**企业名称*/
	@Excel(name = "企业名称", width = 15)
    @ApiModelProperty(value = "企业名称")
    private String name;

	/**企业电话*/
	@Excel(name = "企业电话", width = 15)
    @ApiModelProperty(value = "企业电话")
    private String phone;

	/**企业税号*/
	@Excel(name = "企业税号", width = 15)
    @ApiModelProperty(value = "企业税号")
    private String tax;

	/**企业法人*/
	@Excel(name = "企业法人", width = 15)
    @ApiModelProperty(value = "企业法人")
    private String legal;

	/**法人电话*/
	@Excel(name = "法人电话", width = 15)
    @ApiModelProperty(value = "法人电话")
    private String legalPhone;

	/**企业地址*/
	@Excel(name = "企业地址", width = 15)
    @ApiModelProperty(value = "企业地址")
    private String address;

	/**企业简介*/
	@Excel(name = "企业简介", width = 15)
    @ApiModelProperty(value = "企业简介")
    private String introduction;

	/**开户行*/
	@Excel(name = "开户行", width = 15)
    @ApiModelProperty(value = "开户行")
    private String bankName;

	/**银行账号*/
	@Excel(name = "银行账号", width = 15)
    @ApiModelProperty(value = "银行账号")
    private String bankAccount;

	/**收件人*/
	@Excel(name = "收件人", width = 15)
    @ApiModelProperty(value = "收件人")
    private String receivedName;

	/**收件电话*/
	@Excel(name = "收件电话", width = 15)
    @ApiModelProperty(value = "收件电话")
    private String receivedPhone;

	/**收件地址*/
	@Excel(name = "收件地址", width = 15)
    @ApiModelProperty(value = "收件地址")
    private String receivedAddress;

	/**签约类型：0-默认，1-e签宝*/
    @ApiModelProperty(value = "签约类型：0-默认，1-e签宝")
    private Integer signingType;

	/**签约服务类型*/
    @ApiModelProperty(value = "签约服务类型")
    private String signingServiceType;

	/**到账短信提醒：0-否，1-是*/
    @ApiModelProperty(value = "到账短信提醒：0-否，1-是")
    private Integer receiptSms;

	/**支持批量导入：0-否，1-是*/
	@Excel(name = "支持批量导入：0-否，1-是", width = 15)
    @ApiModelProperty(value = "支持批量导入：0-否，1-是")
    private Integer batchImport;

	/**法人身份证正面照*/
    @ApiModelProperty(value = "法人身份证正面照")
    private String idCardZm;

	/**法人身份证反面照*/
    @ApiModelProperty(value = "法人身份证反面照")
    private String idCardFm;

	/**营业执照*/
    @ApiModelProperty(value = "营业执照")
    private String businessLicense;

	/**企业环境照*/
    @ApiModelProperty(value = "企业环境照")
    private String environment;

	/**合同文件*/
    @ApiModelProperty(value = "合同文件")
    private String contractFile;

	/**风控表*/
    @ApiModelProperty(value = "风控表")
    private String riskFile;

	/**税率*/
	@Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
    private Double taxRate;

	/**状态：0-审核中，1-通过，2-拒绝，3-禁用*/
	@Excel(name = "状态", width = 15, dicCode = "caishui_business_status")
    @ApiModelProperty(value = "状态")
    @Dict(dicCode = "caishui_business_status")
    private Integer status;

	/**驳回原因*/
	@Excel(name = "驳回原因", width = 15)
    @ApiModelProperty(value = "驳回原因")
    private String rejectReason;

	/**是否有子节点*/
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否有子节点")
    private String hasChild;


    /**
     * 删除状态
     */
    @TableLogic
    private Integer delFlag;

    /**下发人员金额超过此金额(包含)则需要审核（0不限制）*/
    @ApiModelProperty(value = "审核临界值")
    private Double checkAmount;

    /**下发人员金额超过此金额(包含)则禁止下发（0不限制）*/
    @ApiModelProperty(value = "禁发临界值")
    private Double stopAmount;

    /**是否默认：0-否，1-是*/
    @ApiModelProperty(value = "是否默认")
    private Integer isDefault;

    /**最低下发金额*/
    @ApiModelProperty(value = "最低下发金额")
    private Double lowestAmount;


    /**创建人*/
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**创建日期*/
    @Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

}
